import Vue from 'vue';
import Vuex from 'vuex';
import {router} from './router';
import 'lib-flexible';
import fonticon from './fonticon/iconfont.css';
import {bus} from './js/bus';
import store from './js/store';
import parabola from './js/parabola';
import BSscroll from 'better-scroll';
import axios from 'axios';
Vue.prototype.$_store = store;
Vue.prototype.$bus = bus;
Vue.prototype.$BSscroll = BSscroll;
Vue.prototype.$http = axios;
Vue.prototype.$parabola = parabola;
require('./mock/mock.js');

import miaoFooter from './global/miaoFooter';
import miaoHeader from './global/miaoHeader';
import message from './global/message';
import castAbout from './global/castAbout';
import merchandiseNews from './global/merchandiseNews';
import myDialog from './global/myDialog';
import myCommodity from './global/myCommodity';
import myCarousel from './global/myCarousel';
import myKeyboard from './global/myKeyboard';
import appLoading from './global/app_loading';
import keepScroll from './global/keepScroll';
// import myLocation from './global/myLocation';

Vue.use(miaoFooter);
Vue.use(miaoHeader);
Vue.use(castAbout);
Vue.use(merchandiseNews);
Vue.use(myDialog);
Vue.use(message);
Vue.use(myCommodity);
Vue.use(myCarousel);
Vue.use(myKeyboard);
Vue.use(fonticon);
Vue.use(appLoading);
Vue.use(keepScroll);
Vue.use(Vuex);
// Vue.use(storex);
// Vue.use(myLocation);


window.onload = () => {
  const store = new Vuex.Store({
    state: {
    },
    mutations: {

    },
  });
  const app = new Vue({
    router,
    store
  }).$mount('#app');
};

